#! /bin/sh

#Autostart
pgrep -x sxhkd > /dev/null || sxhkd &
pgrep -x polybar > /dev/null || polybar &
$HOME/.config/bspwm/scripts/timerSleep &
$HOME/.config/bspwm/scripts/CW &
nitrogen --restore &
picom --config ~/.config/picom/picom.conf &
xsetroot -cursor_name left_ptr &
setxkbmap -option 'grp:caps_toggle' -layout us,ru &
/usr/bin/syncthing --no-browser --home="~/.config/syncthing" &
/usr/bin/kdeconnectd &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
flameshot &

bspc rule -a "Alacritty" desktop='^1'
bspc rule -a "LibreWolf" state=floating rectangle=1600x900+160+90 desktop='^2'
bspc rule -a "Chromium" state=floating rectangle=1600x900+160+90 desktop='^2'
bspc rule -a "floorp" state=floating rectangle=1600x900+160+90 desktop='^2'
bspc rule -a "VSCodium" desktop='^3'
bspc rule -a "Thunar" desktop='^3'
bspc rule -a "Nitrogen" desktop='^4'
bspc rule -a "Portmaster" desktop='^4'
bspc rule -a "Lxappearance" desktop='^4'
bspc rule -a "AyuGramDesktop" desktop='^5'
bspc rule -a "Element" desktop='^5'
bspc rule -a "FreeTube" desktop='^6'
bspc rule -a "obs" desktop='^7'
bspc rule -a "krita" desktop='^7'
bspc rule -a "thunderbird" desktop='^7'
bspc rule -a "Inkscape" desktop='^7'
bspc rule -a "ONLYOFFICE Desktop Editors" desktop='^7'
bspc rule -a "discord" state=floating rectangle=1200x700+360+220 desktop='^8'
bspc rule -a "Popcorn-Time" desktop='^9'
bspc rule -a "steam" desktop='^10'

bspc monitor -d   󰨞  󰈎     󰓓

bspc config border_width         1
bspc config window_gap           10

bspc config normal_border_color "#23252e"
bspc config active_border_color "#23252e"
bspc config focused_border_color "#f9f8fe"
bspc config presel_feedback_color "#24273a"

bspc config split_ratio          0.5

bspc config focus_follows_pointer true
bspc config pointer_modifier	super

bspc config single_monocle	     true
bspc config borderless_monocle   true
bspc config gapless_monocle      false
bspc config paddingless_monocle	 true
